package com.somnus.designPatterns.visitor;

/** 
 * @Title: Client.java 
 * @Package com.somnus.designPatterns.visitor 
 * @Description: TODO
 * @author Somnus
 * @date 2015年6月24日 下午5:02:41 
 * @version V1.0 
 */
public class Client {

    public static void main(String[] args) throws Exception {
        EmployeeList list = new EmployeeList();  
        Employee fte1,fte2,fte3,pte1,pte2;  
  
        fte1 = new FulltimeEmployee("张无忌",3200.00,45);  
        fte2 = new FulltimeEmployee("杨过",2000.00,40);  
        fte3 = new FulltimeEmployee("段誉",2400.00,38);  
        pte1 = new ParttimeEmployee("洪七公",80.00,20);  
        pte2 = new ParttimeEmployee("郭靖",60.00,18);  
  
        list.addEmployee(fte1);  
        list.addEmployee(fte2);  
        list.addEmployee(fte3);  
        list.addEmployee(pte1);  
        list.addEmployee(pte2);  
  
        Department dep = (Department) XMLUtil.getBean();
        list.accept(dep);
    }

}
